<template>
    <div>
      <h3>我是公共组件</h3>
      {{input}}
      <el-form :model="from">
        <el-form-item>
          <el-input v-model="from.input" ></el-input>
        </el-form-item>
      </el-form>
    </div>
</template>

<script>
    export default {
      props:['input'],
        name: "test",
      created(){this.from.input = this.input},
      data(){
          return{
            from:{input:''}
          }
      }
    }
</script>

<style scoped>

</style>
